package com.opensns.android;

public class OpenSnsException extends Exception {

	private static final long serialVersionUID = 1L;

	/**
	 * 错误信息代码。
	 */
	public String error;
	
	/**
	 * 错误的具体描述。
	 */
	public String message;
	
	/**
	 * HTTP返回的状态代码。
	 */
	public String status;
	
	/**
	 * 请求的API路径。
	 */
	public String request = "";
	
	/**
	 * 请求的API响应。
	 */
	public String response = "";
	
	public OpenSnsException() {
		
	}
	
	public OpenSnsException(String error, String message) {
		this.error = error;
		this.message = message;
	}
	
	public OpenSnsException(String error, String message, String status) {
		this.error = error;
		this.message = message;
		this.status = status;
	}
	
	public OpenSnsException(String error, String message, String status, String request) {
		this.error = error;
		this.message = message;
		this.status = status;
		this.request = request;
	}
}
